<%@ page contentType="text/html;charset=UTF-8" %>
<style>
/*.main-sidebar, .left-side{top:50px;}*/
</style>
  <!-- Left side column. contains the logo and sidebar -->
  <aside class="main-sidebar">
    <!-- sidebar: style can be found   in sidebar.less -->
    <section class="sidebar">
      <!-- Sidebar user panel -->
      <div class="user-panel">
        <div class="pull-left image">

          <c:if test="${empty loginUser.user.userRemark}">
		        <img src="${ctx}/images/plateform/person2.png" class="img-circle"/>
		  </c:if>
		  <c:if test="${!empty loginUser.user.userRemark}">
		       <img src="${loginUser.user.userRemark}" class="img-circle"/>
		  </c:if>
          
        </div>
        <div class="pull-left info">
          <p>${loginUser.userCname}</p>
			<a href="${page_admin}/project/index">
				<i class="fa fa-home"></i><span id="left-project-sysCname"> </span>
			</a>
        </div>
      </div>
      <!-- sidebar menu: : style can be found in sidebar.less -->
      <ul class="sidebar-menu">
        <li class="header"></li>
	    <li class="treeview userSLock" userKey="/plateform/home_console/server">
		  <a href="javascript:void(0);">
			  <i class="fa fa-server"></i> <span>注册中心</span><i class="fa fa-angle-left pull-right"></i>
		  </a>
		  <ul class="treeview-menu">
			  <li id="protocol-list" class="userSLock" userKey="/plateform/home_console/server/protocol_list">
				  <a data-pjax="true" href="${ctx}/sendPage/plateform/admin/project/server-list"><i class="fa fa-circle-o"></i>服务接口</a>
			  </li>
			  <li id="datasource-list" class="userSLock" userKey="/plateform/home_console/server/datasource_list">
				  <a data-pjax="true" href="${ctx}/sendPage/plateform/admin/project/datasource-list"><i class="fa fa-circle-o"></i>数据源配置</a>
			  </li>
			  <li id="zuul-route-list" class="userSLock" userKey="/plateform/home_console/server/zuul_route_list">
				  <a data-pjax="true" href="${ctx}/sendPage/plateform/admin/project/zuul-route-list"><i class="fa fa-circle-o"></i>zuul路由配置</a>
			  </li>
			</ul>
	    </li>
		<li class="treeview userSLock" userKey="/plateform/home_console/database">
			<a href="javascript:void(0);">
			<i class="fa fa-database"></i> <span>数据库管理</span><i class="fa fa-angle-left pull-right"></i>
			</a>
			<ul class="treeview-menu" >
				<li id="objName-table" class="userSLock" userKey="/plateform/home_console/database/table"><a data-pjax="true" href="${ctx}/sendPage/plateform/admin/project/objName-table"><i class="fa fa-circle-o"></i>表设计</a></li>
			</ul>
		</li>
	<c:if test="${loginUser.sysFlag =='1'}">
		  <li class="treeview">
			  <a href="javascript:void(0);">
				  <i class="fa fa-database"></i> <span>版本v-2</span><i class="fa fa-angle-left pull-right"></i>
			  </a>
			  <ul class="treeview-menu" >
				  <li id="objName-table2" class="" userKey=""><a data-pjax="true" href="${ctx}/sendPage/plateform/admin/project/objName-table2"><i class="fa fa-circle-o"></i>数据表设计</a></li>
				  <li id="sysModule-list2" class="" userKey=""><a data-pjax="true" href="${ctx}/sendPage/plateform/admin/project/sysModule-list2"><i class="fa fa-circle-o"></i>功能开发</a></li>
			  </ul>
		  </li>
	</c:if>
		  <li class="treeview userSLock" userKey="/plateform/home_console/interface">
			  <a href="javascript:void(0);">
				  <i class="fa fa-share-alt"></i> <span>接口管理</span><i class="fa fa-angle-left pull-right"></i>
			  </a>
			  <ul class="treeview-menu" >
				  <li id="sysParamManager-list" class="userSLock" userKey="/plateform/home_console/interface/param_manager"><a data-pjax="true" href="${ctx}/sendPage/plateform/admin/project/sysParamManager-list"><i class="fa fa-circle-o"></i>接口配置</a></li>
			  </ul>
		  </li>
		<li class="treeview userSLock" userKey="/plateform/home_console/module">
			<a href="javascript:void(0);">
			<i class="fa fa-sitemap"></i> <span>模块管理</span><i class="fa fa-angle-left pull-right"></i>
			</a>
			<ul class="treeview-menu" >
				<li id="sysModule-list" class="userSLock" userKey="/plateform/home_console/module/menu"><a data-pjax="true" href="${ctx}/sendPage/plateform/admin/project/sysModule-list"><i class="fa fa-circle-o"></i>菜单模块</a></li>
			</ul>
		</li>
		  <li class="treeview userSLock" userKey="/plateform/home_console/plugins">
			  <a href="javascript:void(0);">
				  <i class="fa fa-gg"></i> <span>插件管理</span><i class="fa fa-angle-left pull-right"></i>
			  </a>
			  <ul class="treeview-menu" >
				  <li id="sysPluginGroup-list" class="userSLock" userKey="/plateform/home_console/plugins/plugin_group"><a data-pjax="true" href="${ctx}/sendPage/plateform/admin/project/sysPluginGroup-list"><i class="fa fa-circle-o"></i>插件组合</a></li>
				  <li id="sysPluginManager-list" class="userSLock" userKey="/plateform/home_console/plugins/plugin_manager"><a data-pjax="true" href="${ctx}/sendPage/plateform/admin/project/sysPluginManager-list"><i class="fa fa-circle-o"></i>单一插件</a></li>
			  </ul>
		  </li>
		  <li class="treeview userSLock" userKey="/plateform/home_console/rules">
			  <a href="javascript:void(0);">
				  <i class="fa fa-joomla"></i> <span>规则管理</span><i class="fa fa-angle-left pull-right"></i>
			  </a>
			  <ul class="treeview-menu" >
				  <li id="sysRulesProd-list" class="userSLock" userKey="/plateform/home_console/rules/rules_manager"><a data-pjax="true" href="${ctx}/sendPage/plateform/admin/project/sysRulesProd-list"><i class="fa fa-circle-o"></i>规则定义</a></li>
				  <li id="sysRulesType-list" class="userSLock" userKey="/plateform/home_console/rules/rules_type"><a data-pjax="true" href="${ctx}/sendPage/plateform/admin/project/sysRulesType-list"><i class="fa fa-circle-o"></i>规则类型</a></li>
			  </ul>
		  </li>
		  <li class="treeview userSLock" userKey="/plateform/home_console/manager">
			  <a href="javascript:void(0);">
				  <i class="fa fa-users"></i> <span>管理人员</span><i class="fa fa-angle-left pull-right"></i>
			  </a>
			  <ul class="treeview-menu" >
				  <li id="user-list" class="userSLock" userKey="/plateform/home_console/manager/sys_user"><a data-pjax="true" href="${ctx}/sendPage/plateform/admin/project/user-list"><i class="fa fa-circle-o"></i>系统管理员</a></li>
			  </ul>
		  </li>
		  <li class="treeview userSLock" userKey="/plateform/home_console/tools">
			  <a href="javascript:void(0);">
				  <i class="fa fa-cogs"></i> <span>工具帮助</span><i class="fa fa-angle-left pull-right"></i>
			  </a>
			  <ul class="treeview-menu" >
				  <li id="dict-list-default" class="userSLock" userKey="/plateform/home_console/tools/sys_dict"><a data-pjax="true" href="${ctx}/sendPage/plateform/admin/project/dict-list-default"><i class="fa fa-circle-o"></i>默认数据字典</a></li>
				  <li id="dict-list" class="userSLock" userKey="/plateform/home_console/tools/sys_dict"><a data-pjax="true" href="${ctx}/sendPage/plateform/admin/project/dict-list"><i class="fa fa-circle-o"></i>系统数据字典</a></li>
				  <li id="workday" class="userSLock" userKey="/plateform/home_console/tools/workday"><a data-pjax="true" href="${ctx}/sendPage/plateform/admin/project/workday-index"><i class="fa fa-circle-o"></i>工作日管理</a></li>
				  <li id="task-list" class="userSLock" userKey="/plateform/home_console/tools/timing_task"><a data-pjax="true" href="${ctx}/sendPage/plateform/admin/project/task-list"><i class="fa fa-circle-o"></i>定时器管理</a></li>
				  <li id="websocket-list" class="userSLock" userKey="/plateform/home_console/tools/websocket"><a data-pjax="true" href="${ctx}/sendPage/plateform/admin/project/websocket-list"><i class="fa fa-circle-o"></i>websocket验证</a></li>
			  </ul>
		  </li>
		  <li class="treeview userSLock" userKey="/plateform/home_console/actmanager">
			  <a href="javascript:void('0');">
				  <i class="fa fa-ban"></i> <span>权限管理</span><i class="fa fa-angle-left pull-right"></i>
			  </a>
			  <ul class="treeview-menu" >
				  <li id="user-act-list" class="userSLock" userKey="/plateform/home_console/actmanager/actinfo"><a data-pjax="true" href="${ctx}/sendPage/plateform/admin/project/user-act-list"><i class="fa fa-circle-o"></i>权限定义</a></li>
				  <li id="user-act-give" class="userSLock" userKey="/plateform/home_console/actmanager/actinfo"><a data-pjax="true" href="${ctx}/sendPage/plateform/admin/project/user-act-give"><i class="fa fa-circle-o"></i>权限分配</a></li>
			  </ul>
		  </li>
		  <li class="treeview userSLock" userKey="/plateform/home_console/logs">
			  <a href="javascript:void(0);">
				  <i class="fa fa-tv"></i> <span>日志管理</span><i class="fa fa-angle-left pull-right"></i>
			  </a>
			  <ul class="treeview-menu" >
				  <li id="log-model-list" class="userSLock" userKey="/plateform/home_console/logs/log_model"><a data-pjax="true" href="${ctx}/sendPage/plateform/admin/project/log-model-list"><i class="fa fa-circle-o"></i>日志配置</a></li>
				  <li id="log-operation-list" class="userSLock" userKey="/plateform/home_console/logs/log_list"><a data-pjax="true" href="${ctx}/sendPage/plateform/admin/project/log-operation-list"><i class="fa fa-circle-o"></i>日志查询</a></li>
			  </ul>
		  </li>
          <li class="treeview " userKey="/plateform/home_console/flow">
              <a href="javascript:void(0);">
                  <i class="fa fa-flask"></i> <span>流程管理</span><i class="fa fa-angle-left pull-right"></i>
              </a>
              <ul class="treeview-menu" >
                  <li id="audit-flow-list" class="" userKey="/plateform/home_console/flow/audit_flow"><a data-pjax="true" href="${ctx}/sendPage/plateform/admin/project/audit-flow-list"><i class="fa fa-circle-o"></i>审核流程管理</a></li>
                  <%--<li id="audit-rule-list" class="userSLock" userKey=""><a data-pjax="true" href="${ctx}/sendPage/plateform/admin/project/audit-rule-list"><i class="fa fa-circle-o"></i>审核规则设置</a></li>--%>
              </ul>
          </li>
      </ul>
    </section>
    <!-- /.sidebar -->
  </aside>
  

  <script>
  	 	//part1、注入jquery.pjax 绑定A标签点击事件
      	$(document).pjax("[data-pjax='true'], a[data-pjax='true']", ".content-wrapper", {
       		fragment: ".content-wrapper"
      	});
	  	//$(document).pjax('a', '#pjax-container');
	  	$(document).on("pjax:send", function() { 
			//alert("发送完成");
		}); 
		$(document).on("pjax:complete", function(resultData) { 
	  		//alert("加载完成");
	  		showClickMenu();
		});
		
		//part2、注入jquery.load 绑定A标签load事件
		$("[data-load='true']").each(function(){
			var thisHref = $(this).attr("href");
			$(this).attr("load-url",thisHref);
			$(this).attr("href","javascript:;");
			$(this).click(function(){
				$("#main-body").load(thisHref+" .content-wrapper",function(resultData){
					 //alert(resultData);
					 $result = $(resultData); 
			         $result.find("script").appendTo("#main-body");//保证子页面的js内容能被引入进来
				});
			});
		});
		var sysCname_vals = strUtil.getLocalStorage("sysCname");
		$("#left-project-sysCname").text(strUtil.subStr2(sysCname_vals,12));
 </script>

